export default {
	methods: {
		goBack() {
			uni.navigateBack({
				delta: 1,
			})
			uni.navigateBack()
		},
		goBackWithParams(params) {
			var pages = getCurrentPages();
			var prevPage = pages[pages.length - 2];
			prevPage.setData(params);
			uni.navigateBack({ //返回
				delta: 1
			})
		},
		getBackParams(paramsName) {
			let pages = getCurrentPages();
			let currPage = pages[pages.length - 1];
			return currPage.data[paramsName];
		},
	}
}
